<template>
  <!-- 高级设置，批记录项是否必填 Start -->
  <div class="settings">
    <h1>基本设置</h1>
    <div class="dec">
      <p class="dec-p">是否必填：</p>
      <a-checkbox v-model="info.isExecute"> </a-checkbox>
    </div>
    <div class="dec">
      <p class="dec-i">小数位数:</p>
      <a-input
        v-model="info.itemDecimalDigits"
        allowClear
        type="number"
      ></a-input>
    </div>
    <div class="dec">
      <p class="dec-p">是否读秤：</p>
      <a-checkbox v-model="info.isReadScale"> </a-checkbox>
    </div>
    <div class="dec">
      <p class="dec-p">是否扫码：</p>
      <a-checkbox v-model="info.isScan"> </a-checkbox>
    </div>
  </div>
  <!-- 高级设置，批记录项是否必填 End -->
</template>
 
<script>
export default {
  props: ["info"],
  data() {
    return {};
  },
};
</script>
 
<style lang = "less" scoped>
.settings {
  padding: 1.25rem;
  .dec {
    display: flex;
    width: 15rem;
    .dec-p {
      width: 5.2rem;
    }
    .dec-i {
      width: 8rem;
      margin-top: 0.2rem;
    }
  }
}
</style>